<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta  charset="utf-8">
        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <title></title>
        <link  href="<?php echo base_url() . 'public/admin/' ?>css.css"  rel="stylesheet">
        <script  type="text/javascript"  src="<?php echo base_url() . 'public' ?>/jquery.min.js"></script>
        <style  type="text/css"></style></head>

    <body style="background:#F0EFEF;">


        <div  class="chmMain">
            <div  class="chmLeft">
                <ul>
                    <li> <a  href="javascript:void(0)"  class="jiahao pflag">内容管理</a>
                        <ul  class="meuChild"  id="内容管理child">
                            <li><a  href="<?php echo site_url('sa/addContent') ?>" target="main-frame">添加内容</a></li>
                            <li><a  href="<?php echo site_url('sa/listContent') ?>" target="main-frame">内容列表</a></li>
                        </ul>
                    </li>
                </ul>
                <ul>
                    <li> <a  href="javascript:void(0)"  class="jiahao pflag">分类管理</a>
                        <ul  class="meuChild"  id="分类管理child">
                            <li><a  href="<?php echo site_url('sa/addCategory') ?>"  target="main-frame">添加分类</a></li>
                            <li><a  href="<?php echo site_url('sa/listCategory') ?>"  target="main-frame">分类列表</a></li>

                        </ul>
                    </li>
                </ul>    
                <ul>
                    <li> <a  href="javascript:void(0)"  class="jiahao pflag">友链管理</a>
                        <ul  class="meuChild"  id="友链管理child">
                            <li><a  href="<?php echo site_url('sa/addLink') ?>?flag=link"  target="main-frame">添加友链</a></li>
                            <li><a  href="<?php echo site_url('sa/listLink') ?>?flag=link"  target="main-frame">分类列表</a></li>

                        </ul>
                    </li>
                </ul>  
                <ul>
                    <li> <a  href="javascript:void(0)"  class="jiahao pflag">导航管理</a>
                        <ul  class="meuChild"  id="导航管理child">
                            <li><a  href="<?php echo site_url('sa/addLink') ?>?flag=meun"  target="main-frame">添加链接</a></li>
                            <li><a  href="<?php echo site_url('sa/listLink') ?>?flag=meun"  target="main-frame">导航列表</a></li>
                        </ul>
                    </li>
                </ul> 
                <ul>
                    <li> <a  href="javascript:void(0)"  class="jiahao pflag">系统管理</a>
                        <ul  class="meuChild"  id="系统管理child">
                            <li><a  href="<?php $this->config->set_item('global_xss_filtering', 'false');echo site_url('sa/editConfig') ?>?q=config.php"  target="main-frame">配置文件</a></li>
							<li><a  href="<?php echo site_url('sa/exitSys') ?>"  target="main-frame">退出系统</a></li>
                        </ul>
                    </li>
                </ul>   
            </div>

        </div>









        <script  type="text/javascript">


            $(document).ready(function() {
                $(".chmLeft li").click(function() {
                    var $txt = $(this).text();

                });
                var $flag = 1;
                var $isequal = "0";
                $(".pflag").click(function() {
                    $childId = $(this).text() + "child";
                    $txt = $(this).text();

                    if ($isequal == "0") {

                        $(".jiahao").css("background", "url(<?php echo base_url() . 'public/admin/' ?>jiahao.png) no-repeat");
                        $(this).css("background", "url(<?php echo base_url() . 'public/admin/' ?>jianhao.png) no-repeat");
                        $(".meuChild").css("display", "none");
                        $("#" + $childId).css("display", "block");
                        $flag = 0;
                        $isequal = $childId;

                    } else
                    {
                        if ($isequal != $childId) {
                            $(".jiahao").css("background", "url(<?php echo base_url() . 'public/admin/' ?>jiahao.png) no-repeat");
                            $(this).css("background", "url(<?php echo base_url() . 'public/admin/' ?>jianhao.png) no-repeat");
                            $(".meuChild").css("display", "none");
                            $("#" + $childId).css("display", "block");
                            $isequal = $childId;
                            $flag = 0;
                        } else {
                            if ($flag == 1) {
                                $(".jiahao").css("background", "url(<?php echo base_url() . 'public/admin/' ?>jiahao.png) no-repeat");
                                $(this).css("background", "url(<?php echo base_url() . 'public/admin/' ?>jianhao.png) no-repeat");
                                $(".meuChild").css("display", "none");
                                $("#" + $childId).css("display", "block");

                                $flag = 0;
                                $isequal = $childId;
                            } else
                            {
                                $(".jiahao").css("background", "url(<?php echo base_url() . 'public/admin/' ?>jiahao.png) no-repeat");
                                $(this).css("background", "url(<?php echo base_url() . 'public/admin/' ?>jiahao.png) no-repeat");
                                $("#" + $childId).css("display", "none");
                                $flag = 1;
                                $isequal = $childId;
                            }
                        }
                    }

                });
            });

        </script>
    </body></html>